Hummingbird\Core\Modules\Minify\Fonts B

Total Complexity 83
Dependencies 2
Dependents 1
Total lines 653
Lines of code 315
Logical lines of code 185
Comment lines 235
Methods 24
Properties 0

Methods 24

Method Rating Maintainability Complexity Lines of code
combine_google_fonts()
B
37 20 72
add_preload_to_fonts_in_used_css()
A
47 10 36
get_first_font_url()
S
51 7 27
add_preload_to_local_fonts()
S
52 6 23
add_font_display_swap_to_all_font_faces()
S
55 4 20
is_font_url_manually_defined()
S
61 4 13
correct_the_font_url()
S
60 4 13
is_preload_enabled()
S
68 3 7
get_font_display_value()
S
74 2 4
find_matches()
S
69 2 7
get_google_font_preload_markup()
S
61 1 15
generate_preload_fonts()
S
69 2 7
get_preload_fonts_mode()
S
74 2 4
is_valid_font_url()
S
65 2 9
get_manually_defined_fonts_for_preloading()
S
65 2 9
wphb_minify_file_content()
S
71 2 6
is_font_swap_enabled()
S
75 2 4
wp_hummingbird_default_options()
S
70 2 6
wphb_process_buffer()
S
74 1 5
get_local_font_preload_markup()
S
72 1 6
get_allowed_fonts()
S
65 1 10
wphb_preload_fonts()
S
76 1 4
is_minify_enabled()
S
80 1 3
__construct()
S
72 1 5